package com.han.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author hanky
 * @date 2021/11/11
 */
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients // 重点：feign用于客户端->调用payment
     // 重点：客户端开启hystrix
@EnableCircuitBreaker
public class feignOrderApplication {
    public static void main(String[] args) {
        System.out.println("开始启动！>>>han-feign-order-cloud");
        SpringApplication.run(feignOrderApplication.class, args);
        System.out.println("启动成功！>>>han-feign-order-cloud");
    }
}
